package cn.billy.handler;

import cn.billy.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class UserHandler {

    public static User getUserByIdBlockHandler(@PathVariable Long id, BlockException e){
        return User.builder().id(-1l).name("限流了").intro("流控").build();
    }
}
